package cn.dada.dadarecipes.community.comment.mapper;

import cn.dada.dadarecipes.community.comment.pojo.entity.Comment;
import cn.dada.dadarecipes.community.comment.pojo.vo.CommentVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommentMapper {
    List<CommentVO> selectCommentByArticleId(Long articleId);
    Comment selectCommentByCommentId(Long commentId);

    Boolean insertComment(Comment comment);

    Boolean updateComment(Comment comment);

    Boolean deleteComment(Long commentId);
}
